package com.inight.nightojbackendserviceclient.service;


import nightojbackendmodel.entity.QuestionSubmit;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 判题服务. 提供一个统一的规范. 接口就是用来规范的
 */
@FeignClient(name = "nightoj-backend-judge-service", path = "/api/judge/inner")
public interface JudgeFeignClient {

    /**
     *
     * @param questionSubmitId
     * @return
     */
    @GetMapping("/do")
    QuestionSubmit doJudge(@RequestParam("questionSubmitId") long questionSubmitId);

}
